package com.example.ibsp_demo.pojo.entity.content;

import java.util.Date;

public class ImageTag {
    private Integer id;
    private Integer imageId;
    private String tagName;
    private Date createdAt;

    // 无参构造函数
    public ImageTag() {
    }

    // 有参构造函数
    public ImageTag(Integer id, Integer imageId, String tagName, Date createdAt) {
        this.id = id;
        this.imageId = imageId;
        this.tagName = tagName;
        this.createdAt = createdAt;
    }

    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getImageId() {
        return imageId;
    }

    public void setImageId(Integer imageId) {
        this.imageId = imageId;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    // toString 方法
    @Override
    public String toString() {
        return "ImageTag{" +
                "id=" + id +
                ", imageId=" + imageId +
                ", tagName='" + tagName + '\'' +
                ", createdAt=" + createdAt +
                '}';
    }
}